// pages/userMarket/address/address.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    addresType: {
      type: Array,
      value: [],
    },
    areaCode: {
      type: String,
      value: '',
    },
    address: {
      type: String,
      value: '',
    },
  },

  /**
   * 组件的初始数据
   */
  data: {

  },
  attached(){
    
  },
  /**
   * 组件的方法列表
   */
  methods: {
    handleChose(){
      this.triggerEvent('handleChose')
    },
    handleAddr(e){
      let id = e.currentTarget.dataset.id
      var item = e.currentTarget.dataset.item
      this.setData({
        areaCode: id,
      })
      this.triggerEvent('handlesuccess',item)
    },
  }
})
